//
//  WaterAPI.h
//  Water
//
//  Created by yh on 2017/11/30.
//  Copyright © 2017年 chenguibang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ApiResponse.h"
#import "ApiResponse.h"
#import "ApiRequest.h"
#import "APiSessionManager.h"
#import <AliyunOSSiOS/OSSService.h>
#import "DrinkRecord.h"
#import "WaterRequest.h"
#import "RecordsParam.h"
@interface WaterAPI : NSObject

+ (void)getWeater:(NSString *)city
         progress:(void (^)(NSProgress * progress))downloadProgress
          success:(void (^)(NSURLSessionDataTask * task , id responesObject))success
          failure:(void (^)(NSURLSessionDataTask * task, NSError * error))failure;


+ (void)addDrinkRecord:(DrinkRecord *)record
              progress:(void (^)(NSProgress * progress))downloadProgress
               success:(void (^)(ApiResponse *response))success
               failure:(void (^)(NSURLSessionDataTask * task, NSError * error))failure;

+ (void)recordsWith:(RecordsParam *)recordsParam
           progress:(void (^)(NSProgress * progress))downloadProgress
            success:(void (^)(ApiResponse *response))success
            failure:(void (^)(NSURLSessionDataTask * task, NSError * error))failure;
@end
